package secretaryGUI;

import java.awt.Point;
import com.sun.rowset.CachedRowSetImpl;

import flexibility.userData;
import guiCode.secretaryScreenCode;
import basic.ClientConsole;

public class showClassCourses {

	private userData coursesFORclass = new userData();
	private updateLowerTableEntries ULTE = new updateLowerTableEntries();
	private secretaryScreenCode ssc;
	
	public void showClassCourses(Point point, ClientConsole secretaryConnection,CachedRowSetImpl crs, createSecretaryWindow csw, secretaryScreenCode code){
		ssc = code;	
		coursesFORclass.deleteAll();
		csw.table.setEnabled(true);
		coursesFORclass.addData(98);
		coursesFORclass.addData(1);
		coursesFORclass.addData(csw.table_1.getValueAt(csw.table_1.rowAtPoint(point), 0));
		secretaryConnection.acceptMsg(coursesFORclass);
		crs = secretaryConnection.getResults();
		ULTE.update(csw, crs);
		
	}
	
}
